<?php
session_start();
if(!isset($_SESSION['user'])){
    header("location:login.php");
    }
    include_once($_SERVER['CONTEXT_DOCUMENT_ROOT'].'/public/func.php');
    $config=include_once($_SERVER['CONTEXT_DOCUMENT_ROOT'].'/public/config.php');
    $rew = sel($config,'`users`');

?>
<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理系统</title>
    <link rel="stylesheet" type="text/css" href="/public/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="/public/css/main.css"/>
    <script type="text/javascript" src="/public/js/libs/modernizr.min.js"></script>
</head>
<body>
<div class="topbar-wrap white">
    <div class="topbar-inner clearfix">
        <div class="topbar-logo-wrap clearfix">
            <h1 class="topbar-logo none"><a href="index.html" class="navbar-brand">后台管理</a></h1>
            <ul class="navbar-list clearfix">
                <li><a class="on" href="/admin/index.php">首页</a></li>
                <li><a href="#" target="_blank">网站首页</a></li>
            </ul>
        </div>
        <div class="top-info-wrap">
            <ul class="top-info-list clearfix">
                <li><a href=""> 欢迎 管理员<?php echo $rew[0]['nickname'] ?></a></li>
                <li><a href="#">修改密码</a></li>
                <li><a href="zhuxiao.php">退出</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="container clearfix">
    <div class="sidebar-wrap">
        <div class="sidebar-title">
            <h1>菜单</h1>
        </div>
        <div class="sidebar-content">
            <ul class="sidebar-list">
                <li>
                    <a href="#"><i class="icon-font">&#xe003;</i>常用操作</a>
                    <ul class="sub-menu">
                        <li><a href="/admin/article/index.php"><i class="icon-font">&#xe008;</i>文章管理</a></li>
                        <li><a href="/admin/notice/index.php"><i class="icon-font">&#xe005;</i>公告管理</a></li>
                        <li><a href="/admin/category/index.php"><i class="icon-font">&#xe006;</i>分类管理</a></li>
                        <li><a href="/admin/liuyan/index.php"><i class="icon-font">&#xe004;</i>留言管理</a></li>
                        <li><a href="/admin/pinglun/index.php"><i class="icon-font">&#xe012;</i>评论管理</a></li>
                        <li><a href="/admin/users/index.php"><i class="icon-font">&#xe052;</i>会员管理</a></li>
                        <li><a href="/admin/biaoqian/index.php"><i class="icon-font">&#xe006;</i>标签管理</a></li>
                    </ul>
                </li>
                
            </ul>
        </div>
    </div>